package com.mindata.blockchain.core.dao.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * User: jasperxgwang
 * Date: 2018-8-2 14:21
 */
@Configuration
@EnableTransactionManagement
@EnableJpaRepositories(
        basePackages = "com.mindata.blockchain.core.repository",
        entityManagerFactoryRef = "mysqlEntityManagerFactory",
        transactionManagerRef = "mysqlTransactionManager"
)
@ConditionalOnProperty("block.analysis.mysql")
public class MysqlConfiguration {
}
